package io.renren.modules.generator.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.generator.dao.BasTfDao;
import io.renren.modules.generator.entity.BasTfEntity;
import io.renren.modules.generator.service.BasTfService;


@Service("basTfService")
public class BasTfServiceImpl extends ServiceImpl<BasTfDao, BasTfEntity> implements BasTfService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BasTfEntity> page = this.selectPage(
                new Query<BasTfEntity>(params).getPage(),
                new EntityWrapper<BasTfEntity>()
        );

        return new PageUtils(page);
    }

}
